package com.File_io_.io_.writer_;

import java.io.FileWriter;
import java.io.PrintWriter;

/**
 * @author 宋鑫宇
 * @version 1.0
 * 字符打印流PrintWriter 的用法
 */
public class PrintWriter_ {
    public static void main(String[] args) throws Exception{
//        PrintWriter printWriter = new PrintWriter(System.out);
        PrintWriter printWriter = new PrintWriter(new FileWriter("D:\\idea_WorkSpace\\myjava\\myjava\\src\\com\\File_io_\\date\\hello1.txt", true));
        printWriter.println("hi，你好");
        printWriter.close();
    }
}
